[paket]
tanim   = Dde-daemon için Golang bağlamaları
paketci = Cihan_Alkan
grup 	= deepin
url     = https://github.com/linuxdeepin/dde-api

[kaynak]
1= https://github.com/linuxdeepin/dde-api/archive/$surum.tar.gz::$isim-$surum.tar.gz
#git     = https://github.com/linuxdeepin/dde-api
2      = https://github.com/archlinux/svntogit-community/raw/packages/deepin-api/trunk/deepin-api.sysusers

[gerek]
derleme =  gdk-pixbuf-xlib golang-gopkg-yaml
calisma =  

[sha1]
        #1 		= SKIP

[derle]
betik = export GO111MODULE=off
betik = export GOPATH="$SRC/build:/usr/share/gocode"
betik = mkdir -p build/src/pkg.deepin.io/dde/api
betik = cp -a dde-api/* build/src/pkg.deepin.io/dde/api/
betik = go get github.com/cryptix/wav github.com/godbus/dbus github.com/fsnotify/fsnotify
betik = go get github.com/disintegration/imaging github.com/fogleman/gg github.com/mattn/go-sqlite3 github.com/gosexy/gettext github.com/rickb777/date github.com/go-yaml/yaml
betik = export CGO_CPPFLAGS="${CPPFLAGS}"
betik = export CGO_CFLAGS="${CFLAGS}"
betik = export CGO_CXXFLAGS="${CXXFLAGS}"
betik = export CGO_LDFLAGS="${LDFLAGS}"
betik = export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
betik = cd dde-api-$surum
betik = make

[pakur]
betik = cd dde-api-$surum
betik = make DESTDIR="$PKG" install
betik = install -Dm644 /sources/deepin-api.sysusers "$PKG"/usr/lib/sysusers.d/deepin-api.conf
betik = mv $PKG/lib $PKG/usr/libb


